package model;

import java.util.ArrayList;

import controller.Controller;

public class ExerciseList extends ArrayList<Exercise> {
	private static final long serialVersionUID = 1L;

	private Controller controller = null;

	public ExerciseList(Controller controller) {
		super();
		this.controller = controller;
		loadExerciseList();
	}

	private void loadExerciseList() {
		//TODO SQL
		for (int i = 0; i < 20; i++) {
			Exercise e = new Exercise("Exercise " + (i + 1), controller
					.getGymList().get(0));
			this.add(e);
		}
	}

	@Override
	public boolean add(Exercise e) {
		// TODO SQL
		return super.add(e);
	}

	@Override
	public boolean remove(Object o) {
		// TODO SQL
		return super.remove(o);
	}

	@Override
	public Exercise remove(int index) {
		// TODO SQL
		return super.remove(index);
	}
}
